<?php echo $this->Section->main();?>
<?php echo $this->Html->script(array(HOST.'/actions'),$options = array('allowCache'=>false,'safe'=>false,'inline'=>false));?>
<?php echo $this->Html->css(array(HOST.'/users.view',HOST.'/form',HOST.'/actions'),null,array('inline'=>false));?>


<div id="content_header">
	<div class="clear">&nbsp;</div>
</div>
<div class="clear"></div>
<div id="content_repeat">
	<div class="grid_1">
		<?php echo $this->element('languages')?>
	</div>
	<div class="grid_2">
		<p><?php //crumbs ?>&nbsp;</p>
	</div>
	<div class="grid_1">
		<?php echo $this->element('search')?>
	</div>	
	<div class="clear">&nbsp;</div>
</div>
<div class="clear"></div>

<div id="content_repeat">
	<div class="grid_1">
		<?php echo $this->element('user_main_left_menu')?>
	</div>
	<div class="grid_3">
		<?php echo $this->Section->generate(1);?>
	
		&nbsp;
	</div>	
	<div class="clear">&nbsp;</div>
</div>

<?php if($session->check('Auth.User.id') && $this->Session->read('Auth.User.group') == 'admin' || $session->check('Auth.User.id') && $this->Session->read('Auth.User.group') == 'manag'){?>
	<div class="actions main_actions">
		<h3><?php __('Actions'); ?></h3>
		<ul>
			<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('User.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('User.id'))); ?></li>
			<li><?php echo $this->Html->link(__('List Users', true), array('action' => 'index'));?></li>
	
			<li><?php echo $this->Html->link(__('New User', true), array('action' => 'add_user')); ?> </li>
		</ul>
	</div>
<?php }?>	
